import{d,a as o,_ as r}from"./zLhWS5ASmTpqt.js";import{d as c,a9 as u,b as i,o as t,a as p,F as f,r as h,c as l,w as v,ai as x,ar as C,ah as b}from"./CtbHscGXagutd.js";import"./CtybWkkwagutd.js";const y={class:"app-list-item-table-inner app-list-item-border"},k=c({__name:"app-table",props:{item:{},index:{},selected:{type:Boolean},selectedLast:{type:Boolean},size:{},columns:{}},setup(e){const m=u(()=>(e.columns??d.value).map(n=>o.find(s=>s.name===n)));return(n,s)=>(t(),i("div",{class:b(["app-list-item-table",{selected:e.selected,selectedLast:e.selectedLast,_odd:e.index%2!==0,_even:e.index%2===0}]),style:C({height:`${e.size}px`})},[p("div",y,[(t(!0),i(f,null,h(m.value,a=>(t(),l(r,{key:a.id,name:a.name,align:a.align,width:a.width},{default:v(()=>[(t(),l(x(a.component),{item:e.item},null,8,["item"]))]),_:2},1032,["name","align","width"]))),128))])],6))}});export{k as default};